package day230903;

/**
 * @author 兴趣使然黄小黄
 * @version 1.0
 * @date 2023/9/3 21:29
 */
class B{
    int a = a();
    static int b = b();
    static {
        System.out.println(3);
    }
    {
        System.out.println(4);
    }
    public B(){
        System.out.println(99);
    }
    public static int b(){
        System.out.println(2);
        return 1;
    }
    public int a(){
        System.out.println(1);
        return 1;
    }
}
public class Main extends B{
    public Main() {
        System.out.println(100);
    }
    int a = a();
   static int b  =b();
    public static int b(){
        System.out.println(6);
        return 1;
    }
    static {
        System.out.println(7);
    }
    {
        System.out.println(8);
    }
    public int a(){
        System.out.println(5);
        return 1;
    }

    public static void main(String[] args) {
        Main main = new Main();
        Main main1 = new Main();
    }
}
